-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support Drosera #981
feat: support Drosera #981
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Pls fix the comments
- Did you deploy the contracts to the testnet?
- Did you check that the trap works as expected?
- The trap must pause the contracts.
- CI should pass.
@@ -46,3 +46,6 @@ | |||
path = packages/contracts/lib/aave-v3-periphery | |||
url = https://github.com/aave/aave-v3-periphery | |||
branch= master | |||
[submodule "packages/contracts/lib/v3-periphery"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this submodule? It's not used anywhere.
@@ -0,0 +1,35 @@ | |||
pragma solidity ^0.8.0; | |||
|
|||
contract ProtocolTrap { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Contract must implement ITrap
.
} | ||
|
||
function collect() external view returns (bytes memory) { | ||
uint256 randomNumber = randomize(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the point of returning a random number?
@kingsley-einstein, this task has been idle for a while. Please provide an update. |
@rndquu |
Drosera runs its own operators and drosera team made us sure there will be at least 1 operator in our trap. So becoming an operator is unnecessary, it's drosera's job. |
@kingsley-einstein, this task has been idle for a while. Please provide an update. |
Resolves #979